<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<header class="bg-light border-bottom d-flex align-items-center justify-content-between">
    <div style="margin-right: auto;padding-left: 1.75rem;">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb mb-0" id="breadcrumb"
                style=" background-color: transparent; padding: 0.75rem 0;    margin-bottom: 0;">
                <li class="breadcrumb-item"><a href="#">首页</a></li>
                <li class="breadcrumb-item active" aria-current="page">
                    ${param.title}
                </li>
            </ol>
        </nav>
    </div>


    <div class="dropdown" style="margin-right: 1.75rem">
        <a class="btn btn-outline-danger dropdown-toggle px-3 d-flex align-items-center"
           href="#"
           role="button"
           data-bs-toggle="dropdown"
           style="height: 38px;">
            ${sessionScope.loginUser.username}
        </a>

        <ul class="dropdown-menu dropdown-menu-end">
            <li><a class="dropdown-item"
                   href="${pageContext.request.contextPath}/client/user?method=profile">
                <i class="bi bi-person me-2"></i>个人中心</a></li>
            <li><a class="dropdown-item"
                   href="${pageContext.request.contextPath}/index">
                <i class="bi bi-house me-2"></i>前台首页</a></li>
            <li>
                <hr class="dropdown-divider">
            </li>
            <li><a class="dropdown-item" href="${pageContext.request.contextPath}/public?method=logout">
                <i class="bi bi-box-arrow-right me-2"></i>退出登录</a>
            </li>
        </ul>
    </div>
</header>
